<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$title}</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">ID<span class="text-danger small"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="id" value="{$id}" readonly>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label text-danger">库存不足预警<span class="text-danger small">(当库存小于该值时，红色预警)</span></label>
            <div class="controls">
                <input type="tel" class="text input-large" name="cnt_low" value="{$pro.cnt_low}" >
            </div>
        </div>
        <div class="form-item">
            <label class="item-label text-warning">库存偏低预警<span class="text-warning small">(当库存小于该值时，黄色预警)</span></label>
            <div class="controls">
                <input type="tel" class="text input-large" name="cnt_poor" value="{$pro.cnt_poor}" >
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1); return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Subpro/manage')}');
    </script>
</block>
